package webapp.mvc.controllers.forms;

import com.zoowii.formutils.annotations.Length;

import javax.validation.constraints.NotNull;

public class CreateShopCommentForm {
    @NotNull
    @Length(max = 50)
    private String shopId;
    @NotNull(message = "评论标题不可为空")
    @Length(max = 50, message = "评论标题应该在1到50字符")
    private String title;
    @NotNull(message = "评论内容不可为空")
    @Length(max = 2000, message = "评论内容不可为空，最多2000字符")
    private String content;

    public String getShopId() {
        return shopId;
    }

    public void setShopId(String shopId) {
        this.shopId = shopId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }
}
